package cn.chainco.cts.jdo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

// 数据字典
@Entity
@Table(name = "cts_datadictionary")
public class DataDictionary implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private long id;

	@Transient
	private String name; // 名称

	@Column(length = 50, nullable = false)
	private String name_zh; // 中文描述

	@Column(length = 50, nullable = false)
	private String name_en; // 英文描述

	@Column(nullable = false)
	private Integer status = 0; // 是否可用：0.正常，1.禁用

	@Column(nullable = false)
	private Integer type; // 1.FCL，2.LCL，3.AIR，4.EXPRESS，5.TRUCKING，6.OTHERS

	@Column(nullable = false)
	private Integer typeDetail; // 1.货物类型；2.交接方式；3.运费支付方式；4.放货方式；5.包装类型
	// 6.接驳工具；7.承运人（船东/航空公司/快递公司）；

	@Column
	private Integer orderNo; // 排序

	@Column
	private Long parentId; // 父Id

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return this.getName_zh();
		//return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName_zh() {
		return name_zh;
	}

	public void setName_zh(String name_zh) {
		this.name_zh = name_zh;
	}

	public String getName_en() {
		return name_en;
	}

	public void setName_en(String name_en) {
		this.name_en = name_en;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getTypeDetail() {
		return typeDetail;
	}

	public void setTypeDetail(Integer typeDetail) {
		this.typeDetail = typeDetail;
	}

	public Integer getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

}
